// 文章点击收起和展开功能

function $id(id){
	return document.getElementById(id);
}
$id("text").className = "change";
$id("toUp").onclick = function(){
	if($id("text").className == "text"){
		$id("text").className = "change";
		this.innerHTML = "▼展开全文";
	}else{
		$id("text").className = "text";
		this.innerHTML = "▲收起";
	}
	
}

$id("chat").style.display = "none";
$id("zan").onmouseover = function(){
	this.src = "img/zan1.png";
	this.onclick = function(){
		$id("num").innerHTML++;
	}
}
$id("zan").onmouseout = function(){
	this.src = "img/zan.png";
}
$id("love").onmouseover = function(){
	this.src = "img/love1.png";
	this.onclick = function(){
		$id("luv").innerHTML++;
	}
}
$id("love").onmouseout = function(){
	this.src = "img/love.png";
}
$id("shang").onmouseover = function(){
	this.src = "img/shang1.png";
	$id("chat").style.display = "block";
	
}
$id("shang").onmouseout = function(){
	this.src = "img/shang.png";
	$id("chat").style.display = "none";
}
